﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 第二次作业
{
    public class BadCashException
    {
        public BadCashException() { }
 
        public bool IsError()
        {
            Random random = new Random();
            double i = random.Next(0,100);
            if (i <= 30)
            {
                return true;
            }
            else { return false; }

        }


    }
}
